package com.markus.code.exam.aiqiyi;

import java.util.Arrays;
import java.util.Scanner;

/**
 * Author:markusZhang
 * Date:Create in 2020/9/13 15:29
 * todo:
 */
public class Main1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNext()){
            String s = scanner.nextLine();
            String []str = s.split(" ");
            int []nums = new int[str.length];
            for (int i=0;i<nums.length;i++){
                nums[i] = Integer.parseInt(str[i]);
            }
            Arrays.sort(nums);
            if (nums.length % 2==0){
                System.out.println(nums[(nums.length-1)/2]);
            }else{
                System.out.println(nums[nums.length/2]);
            }
        }
    }
}
